﻿using Lhz.Sc.Entity.Enum;
using System;
using System.Runtime.Serialization;

namespace Lhz.Sc.Entity.Database
{
    [DataContract(IsReference = true)]
    public class Authorization : DatabaseEntity
    {
        [DataMember]
        public virtual Guid UserGuid { get; set; }

        [DataMember]
        public virtual User User { get; set; }

        [DataMember]
        public virtual Guid ObjectGuid { get; set; }

        [DataMember]
        public virtual AuthorizationType AuthorizationType { get; set; }

        [DataMember]
        public virtual Application Application { get; set; }

        [DataMember]
        public virtual Service Service { get; set; }

        [DataMember]
        public virtual Operation Operation { get; set; }
    }
}
